//
//  JHDetailViewController.swift
//  JHSinaWeibo
//
//  Created by apple on 16/5/21.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class JHDetailViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        //设置背景颜色
        view.backgroundColor = UIColor.redColor()
        let back = UIBarButtonItem(imageName:"navigationbar_back_withtext",title: "返回",target: self,action: #selector(JHDetailViewController.back))
        //设置自定义返回按钮
        self.navigationItem.leftBarButtonItem = back
        
    }
    @objc private func back(){
    navigationController?.popViewControllerAnimated(true)
    
    }
    
}
